# 添加购物车增删改查及全选功能
"""
POST /carts/
请求参数：json
{
"goods_id":5,
"count":5'
"selected":ture
}
可携带cookie，token
访问此接口，无论用户是否登录，前端请求都需携带请求头Authorization，
由后端判断是否登录

返回值：json
{
"goods_id":5,
"count":5'
"selected":ture
}
"""
# ---------------------------------------------------------------------------
"""
GET /carts/
返回值
[
    {
        "goods_id": 1,
        "name": "新版凤姐",
        "shop_price": "9.9",
        "count": 3,        
        "default_image_url": " ",
        "selected": true
    },
    {
        "goods_id": 2,
        "name": "新版林志玲",
        "shop_price": "9.9",
        "count": 3,        
        "default_image_url": " ",
        "selected": true
    }
]
"""
# ----------------------------------------------------------------------------------------
"""
put /carts/
{
"goods_id":3,
"count":100'
"selected":ture
}
返回值
{
"goods_id":3,
"count":100'
"selected":ture
}
"""
# ------------------------------------------------------------------------------------------
"""
DELETE /cart/
传参
{
"goods_id":4,
}
返回值：json
{
"goods_id":4,
}
"""
# ------------------------------------------------------------------------------------------
"""
全选按钮
put /carts/select_all/
{
"selected":true
}
{'message': 'OK'}
"""






